CompleteMultipartUpload
Description
after uploading all data parts, the CompleteMultipartUpload API must be called to complete the Multipart Upload of the entire file.
Request Method
POST
Request Path
/apsara/route/OneRouter/CompleteMultipartUpload
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
x-oss-complete-all:yes | BODY | string | No | No sample value for this parameter. | specifies whether to list all parts uploaded by the current UploadId. If the x-oss-complete-all:yes is specified, OSS lists all the uploaded parts of the current UploadId, and then sorts and executes the CompleteMultipartUpload operation according to the PartNumber sequence number. Part uploaded or missing cannot be detected during the execution of CompleteMultipartUpload, so users need to ensure the integrity of Part themselves. If the x-oss-complete-all:yes is specified, the body is not allowed to be specified, otherwise an error is reported. If the x-oss-complete-all:yes is specified, the format of the response remains unchanged. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}